<?php require_once("conn.php");
	  require_once("GetSQLValueString.php");
	if(!(isset($_SESSION['MM_Username']))){
		header("Location: index.php");
	}
	if((isset($_GET['article_id'])) && ($_GET['article_id']!="")){
		$deleteSQL = sprintf("delete from articles where article_id=%s",
					GetSQLValueString($_GET['article_id'],"int"));
		mysql_select_db($dataname,$conn);
		$Result1 = mysql_query($deleteSQL,$conn) or die(mysql_error());

		header("Location: admin_list.php");

	}

?>